﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
    <head>
        <style type="text/css">
           
            #numbersOfPassages,#numbersOfConcepts, #numbersOfDocuments
            {
                width: 30px;
            }
           
        </style>
        <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
        <script>
            function ExecuteEvaluation() {
                $("#evaluationTable").html("please wait....");
                var numbersOfDocuments = $("#numbersOfDocuments").val();
                var numbersOfPassages = $("#numbersOfPassages").val();
                var numbersOfConcepts = $("#numbersOfConcepts").val();
                var enableEkspansi = "no";
                if ($("#EnableEkspansi").attr("checked"))
                     enableEkspansi = "yes";

                $.post(
                    "Evaluation/EvaluationCalculation",
                    {
                        numbersOfDocuments: numbersOfDocuments,
                        numbersOfPassages: numbersOfPassages,
                        numbersOfConcepts: numbersOfConcepts,
                        enableEkspansi : enableEkspansi

                }
                    ,
                    function (response) {
                        $("#evaluationTable").html(response);
                    }
                );
            }
        
        </script>
</head>
    <h2>Evaluation</h2>
    <form>
        <label>Jumlah Top N Dokumen</label>
        <input type="text" name="numbersOfDocuments" id="numbersOfDocuments" /><br />
        <label>Jumlah Passages</label>
        <input type="text" name="numbersOfPassages" id="numbersOfPassages" /><br />
        <label>Jumlah Top N Concepts</label>
        <input type="text" name="numbersOfConcepts" id="numbersOfConcepts" /><br />
        <input type="checkbox" name="EnableEkspansi" id="EnableEkspansi" /> Enable Ekspansi<br />
        <input type="button" value="HITUNG EVALUASI (Recall/Precision)" onclick="ExecuteEvaluation()" />
    </form>

    <div id="evaluationTable"></div>

